Yes rcgldr, C supports the way I declared those structures and typedefs, at least Xcode didn't complain about it and I've seen my teachers using this every now and then.
I'll use the fgets() function as you said, but could you explain me why exactly is it better the way you did?
Lastly, I've tried to save the closet nodes in last like I did with the first function but I failed and I got even more confused, would you show me a fast example on how would you do it ?
Thank you!